package model

import (
	"gorm.io/gorm"
	"time"
)

type Doctor struct {
	Id           uint64         `gorm:"column:id;type:bigint(20) UNSIGNED;primaryKey;not null;" json:"id"`
	DoctorName   string         `gorm:"column:doctor_name;type:varchar(30);comment:医生姓名;not null;" json:"doctor_name"`                      // 医生姓名
	DoctorNum    uint64         `gorm:"column:doctor_num;type:bigint(20) UNSIGNED;comment:签约周期;not null;" json:"doctor_num"`                // 签约周期
	DoctorNumber uint64         `gorm:"column:doctor_number;type:bigint(20) UNSIGNED;comment:签约人数;not null;" json:"doctor_number"`          // 签约人数
	Doctorment   uint64         `gorm:"column:doctorment;type:bigint(3) UNSIGNED;comment:选择服务方式1:上门服务2:预约服务;not null;" json:"doctorment"`   // 选择服务方式1:上门服务2:预约服务
	DoctorStatus uint64         `gorm:"column:doctor_status;type:bigint(3) UNSIGNED;comment:审核状态1:未通过2:已通过;not null;" json:"doctor_status"` // 审核状态1:未通过2:已通过
	DoctorPrice  uint64         `gorm:"column:doctor_price;type:bigint(20) UNSIGNED;comment:签约费用;not null;" json:"doctor_price"`            // 签约费用
	CreatedAt    time.Time      `gorm:"column:created_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"created_at"`
	UpdatedAt    time.Time      `gorm:"column:updated_at;type:datetime(3);not null;default:CURRENT_TIMESTAMP(3);" json:"updated_at"`
	DeletedAt    gorm.DeletedAt `gorm:"column:deleted_at;type:datetime(3);default:NULL;" json:"deleted_at"`
}

func (d *Doctor) TableName() string {
	return "doctor"
}
